const UserRightsDao = require('../dao/userRightsDao');

exports.updateRights = function (params) {
    return new Promise(function (resolve,reject) {
        UserRightsDao.updateRights(masterPool,params)
            .then(resolve("更新成功"),reject);
    });
};
exports.queryRights = function (params) {
    return new Promise(function (resolve,reject) {
        UserRightsDao.queryRights(masterPool,params)
            .then(resolve,reject);
    });
};